<template>
    <div>
        <Label>{{ label }}</Label>
        {{ modelValue }}
        <input :type="type" :value="aaaa" @input="handleInput">
    </div>
</template>

<script>
export default {

    methods: {
        handleInput(e) {
            // v-model组件名会被转换成updata:modelValue
            this.$emit('updata:aaaa', e.target.value);
        }
    },
    props: {
        label: {
            type: String,
            default: ''
        },
        aaaa: {   //v-model展开会被转换成modelValue
            type: String,
            default: ''
        },
        type: {
            type: String,
            default: 'text'
        }
    }
}
</script>